#include <stdio.h>   
#include <sys/types.h>   
#include <stdlib.h>    
#include <signal.h>    
  
int flag = 1;    
  
void func(int sig)      
{   
    printf("I get a signal! signal is %d \n",sig);   
    flag = 0;     
}    
  
int main()     
{    
    int i = 0;
    char* p = NULL;
    for(i = 0; i< 30; i++)
    {
        signal(i, func);
    }

    //printf("pid:%ld\n",(long)getpid());   
    memset(p,0,33);
    printf("%s",p);

    return 0;    
}

